﻿@model Peresvet.Models.GalleryItemModel
@{
	ViewBag.Title = Model != null ? Model.Name : "Галерея";
}

@if (Model != null && Model.Images != null && Model.Images.Any())
{
	<div id="content-slider">
		<div id="galleria">
			@foreach (var image in Model.Images)
			{
				<a href="..\..\@image.Url"><img src="..\..\@image.UrlThumb" data-title="" data-description="" /></a>
			}
		</div>
	</div>
}

<script type="text/javascript">
	// Load the classic theme
	Galleria.loadTheme('/Scripts/galleria.classic.js');
	// Initialize Galleria
	Galleria.run('#galleria');
</script>
